package org.midi.j2me.component;

import java.io.IOException;

import javax.microedition.lcdui.Image;

public class ImageLib {
	public Image imgLogo, imgFile, imgDir;

	private static ImageLib instance;

	private String dir = "/res/";

	private ImageLib() {
		try {
			imgLogo = Image.createImage(dir + "logo.png");
			imgFile = Image.createImage(dir + "file.png");
			imgDir = Image.createImage(dir+"dir.png");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static ImageLib getInstance() {
		if (instance == null) {
			instance = new ImageLib();
		}

		return instance;
	}

}
